package com.igbeok.miscellaneous.concurrency.java5;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.igbeok.miscellaneous.concurrency.LiftOff;

public class Executor {

	public static void main(String[] args) {
		ExecutorService exec = Executors.newCachedThreadPool();
		ExecutorService exec2 = Executors.newFixedThreadPool(100);
		for (int i = 0; i < 5; i++) {
			exec.execute(new LiftOff());
		}
		exec.shutdown();
	}

}
